package HomeWorkDemo.day01;

import java.io.File;

public class Test2_2 {
    public static void main(String[] args) {
        File dir=new File(".");
         /*FileFilter filter=new FileFilter() {
            @Override
            public boolean accept(File file) {
                return file.getName().contains("F");
            }

        } ;*/
        File[]subs=dir.listFiles(file->file.getName().contains("s"));//lambda  对上述代码的简化
    }
}
